<?php
/**
 * Introduction: 商品属性表  goods_attr
 * @author: 杨陈鹏
 * @date: 2016/4/10 16:41
 * @email: yangchenpeng@cdlinglu.com
 */

namespace Common\Model;


use Think\Model;

class GoodsAttrModel extends Model
{
    //定义数据库连接信息
    protected $connection;
    //定义模型字段
    protected $fileds = ['id', 'name'];
    //定义表名
    protected $tableName = 'goods_attr';

    /**
     * 初始化
     */
    public function _initialize()
    {
        $this->connection = C('Databaese');
    }
}